package com.fashiontextile.user.service;

import com.fashiontextile.user.entity.Comment;
import com.fashiontextile.common.entity.R;
import com.fashiontextile.user.entity.Article;

import java.util.List;

public interface ArticleService {
    R<?> publishArticle(Long daid, Article article, Long uid);

    R<?> upDateArticleByAid(Long uid,Article article);

    boolean verifyModifyAuthority(Long uid, Long aid);

    R<?> deleteArticle(Long uid,Long aid);

    R<?> selectArticles(Long dcid,Integer page);

    R<?> getArticleByUid(Long uid);

    R<?> getArticleByAid(Long aid);

    R<?> insertComment(Long aid,Comment comment,Long uid);

    R<?> selectCommentByctid(Long ctid);

    List<Comment> handParentChildreComment(List<Comment> parentCommentst,List<Comment> allChildreComment);
}
